# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=slides
pkgver=0.9.0
pkgrel=12
pkgdesc="Terminal based presentation tool"
url="http://maaslalani.com/slides"
arch="all"
license="MIT"
makedepends="go"
checkdepends="bash"
source="https://github.com/maaslalani/slides/archive/v$pkgver/slides-v$pkgver.tar.gz"

export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
export GOFLAGS="$GOFLAGS -modcacherw"

build() {
	make build
}

check() {
	make test
}

package() {
	install -Dm755 slides -t "$pkgdir"/usr/bin/
}

sha512sums="
b0dd3b4341e52d4bafe775e4a0039de898a8779cfabed10b69650da3f09610ce4de5c5917b06a4efedc15cd3b4a085b33718050fcb2fa018bb4d27530369f387  slides-v0.9.0.tar.gz
"
